public class test1 {
    class Solution {
        public boolean isSubsequence(String s, String t) {
            if(s==null || s.length()==0){
                return true;
            }
            int len = s.length();
            int count = 0;
            int i = 0,j = 0;
            while(i<s.length() && j<t.length()){
                if(s.charAt(i)==t.charAt(j)){
                    i++;
                    j++;
                    count++;
                }else{
                    j++;
                }
                if(count==len){
                    return true;
                }
            }
            return false;
        }
    }
}
